﻿package com.xeem.core.utils
{	
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	
	public class TimerUtil
	{
		private var _timer:Timer;
		private var _f:Function;
		
		public function TimerProcess(delay:uint,v:Function)	
		{
			_timer=new Timer(delay,1);
			_timer.addEventListener(TimerEvent.TIMER,onTimer);
			_timer.start();	
			_f=v;
		}
				
		private function onTimer(event:TimerEvent):void{
			_f.apply();			
		}			
	}
}